package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CoffeeStorageInformationMapper;
import com.ruoyi.system.domain.CoffeeStorageInformation;
import com.ruoyi.system.service.ICoffeeStorageInformationService;

/**
 * 入库信息Service业务层处理
 * 
 * @author Lin
 * @date 2024-02-13
 */
@Service
public class CoffeeStorageInformationServiceImpl implements ICoffeeStorageInformationService 
{
    @Autowired
    private CoffeeStorageInformationMapper coffeeStorageInformationMapper;

    /**
     * 查询入库信息
     * 
     * @param warehouseId 入库信息主键
     * @return 入库信息
     */
    @Override
    public CoffeeStorageInformation selectCoffeeStorageInformationByWarehouseId(Long warehouseId)
    {
        return coffeeStorageInformationMapper.selectCoffeeStorageInformationByWarehouseId(warehouseId);
    }

    /**
     * 查询入库信息列表
     * 
     * @param coffeeStorageInformation 入库信息
     * @return 入库信息
     */
    @Override
    public List<CoffeeStorageInformation> selectCoffeeStorageInformationList(CoffeeStorageInformation coffeeStorageInformation)
    {
        return coffeeStorageInformationMapper.selectCoffeeStorageInformationList(coffeeStorageInformation);
    }

    /**
     * 新增入库信息
     * 
     * @param coffeeStorageInformation 入库信息
     * @return 结果
     */
    @Override
    public int insertCoffeeStorageInformation(CoffeeStorageInformation coffeeStorageInformation)
    {
        return coffeeStorageInformationMapper.insertCoffeeStorageInformation(coffeeStorageInformation);
    }

    /**
     * 修改入库信息
     * 
     * @param coffeeStorageInformation 入库信息
     * @return 结果
     */
    @Override
    public int updateCoffeeStorageInformation(CoffeeStorageInformation coffeeStorageInformation)
    {
        return coffeeStorageInformationMapper.updateCoffeeStorageInformation(coffeeStorageInformation);
    }

    /**
     * 批量删除入库信息
     * 
     * @param warehouseIds 需要删除的入库信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeStorageInformationByWarehouseIds(Long[] warehouseIds)
    {
        return coffeeStorageInformationMapper.deleteCoffeeStorageInformationByWarehouseIds(warehouseIds);
    }

    /**
     * 删除入库信息信息
     * 
     * @param warehouseId 入库信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeStorageInformationByWarehouseId(Long warehouseId)
    {
        return coffeeStorageInformationMapper.deleteCoffeeStorageInformationByWarehouseId(warehouseId);
    }
}
